Exclude `*.rs.bk` files more liberally
authorSander Maijers <S.N.Maijers@gmail.com>
Sun, 26 Feb 2017 13:31:55 +0000 (14:31 +0100)
committerSander Maijers <S.N.Maijers@gmail.com>
Sun, 26 Feb 2017 13:31:55 +0000 (14:31 +0100)
This will cover them in different places as well, considering the default
[project layout](https://doc.crates.io/guide.html#project-layout).

src/cargo/ops/cargo_new.rs

index 4921db34db85da823ecbf023de2861bd4e7c6b3e..39ea8bd5512cafca0e1092f4244e55ad9b7ae666 100644 (file)
@@ -435,7 +435,7 @@ fn mk(config: &Config, opts: &MkOptions) -> CargoResult<()> {
     let path = opts.path;
     let name = opts.name;
     let cfg = global_config(config)?;
-    let ignore = ["target/\n", "src/**/*.rs.bk\n",
+    let ignore = ["target/\n", "**/*.rs.bk\n",
         if !opts.bin { "Cargo.lock\n" } else { "" }]
         .concat();